package com.qmctl.util;

import org.springframework.util.StringUtils;
import org.springframework.validation.Errors;

public class CstmValidationUtils {
	  public  static void rejectValueIfEmpty(String value,String field,String code,Errors errors ){
			if (value == null ||!StringUtils.hasText(value.toString())) {
				errors.reject(field+code, "");
			} 
	  }

}
